<!--
/**
* Author: KSJ
* Date: 2022-07-28 17:01
* Desc: 卡片轮播
*/
-->
<!-- by your name -->
<template>
  <view>
    <u-swiper
      :list="list"
      :previous-margin="space0"
      :next-margin="space"
      :autoplay="autoplay"
      :radius="radius"
      :key-name="keyName"
      bg-color="#ffffff"
    ></u-swiper>
  </view>
</template>

<script>
  export default {
    name: '',
    props: {
      radius: {
        tpe: [String, Number]
      },
      autoplay: {
        type: Boolean,
        default: false
      },
      space: {
        type: [String, Number],
        default: 20
      },
      keyName: {
        type: [String, Number],
        default: ''
      }
    },
    computed: {
      // swiperList() {
      //   let list = this.list
      //   if (this.keyName) {
      //     list = this.list.map((item) => {
      //       return item[this.keyName]
      //     })
      //   }
      //   return list
      // }
    },
    data() {
      return {}
    },
    methods: {
      //初始化方法
      init() {}
    }
  }
</script>
<style lang="scss" scoped></style>
